<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="/WEB-INF/jsp/common/common.jsp" />
<script type="text/javascript">
	$(function() {
		$("#emp").hide();
	})

	function query(id) {
		var num = $("input[name='num']").val();
		$.ajax({
			type : "post",
			url : "${path}/ix/empower/edit.htm",
			data : {
				num : num,
				id : id
			},
			success : function(data) {
				$("#emp").hide();
				$("#em").text(num);
				ohSnap("操作成功", "success");
			}
		});
	}
	function myEdit() {
		$("#emp").show();
	}
	function myNo() {
		$("#emp").hide();
	}
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/jsp_lib/tip.jsp" />
	<div>
		<form action="${path}/ix/empower/list.htm" id="form1" method="post">
			<input type="hidden" name="role_id" />
			<h2>
				<div>被转授权人员上限设置</div>
			</h2>

			<table width="100%" class="listlindex">
				<tr>
					<th>人员上限人数</th>
					<th>操作</th>
				</tr>
				<tr>
					<td id="em">${empower.num}</td>
					<td><a href="javascript:myEdit('${empower.num}');">【修改】</a></td>
				</tr>
			</table>
			<div id="response"></div>
			<div class="options">
				<div class="clear"></div>
			</div>
		</form>

	</div>

	<div id="emp"
		style="height: 400px;width:260px;	position: absolute;	left: 36%;top: 35%;display:none;">
		<div class="query">
			<h2>
				<div>请填写人数</div>
			</h2>
			<table width="100%" class="listlindex">
				<tr>
					<td width="30%">人数</td>
					<td><input name="num" type="text" value="${empower.num}"
						maxlength="10" /></td>
				</tr>
			</table>
			<div>&nbsp;</div>
			<a href="javascript:query('${empower._id}');">【确定】</a> <a
				href="javascript:myNo();">【取消】</a>
		</div>
	</div>
</body>
</html>